﻿@model IPagedList<InfoLogic.Models.ProductSaleModel>



<div id="productList">

    <div class="pagedList" data-otf-target="#productList">
        @Html.PagedListPager(Model, page => Url.Action("AutoCompleter", new { page }),
        PagedListRenderOptions.MinimalWithItemCountText)
    </div>

    @foreach (var item in Model)
    {
        <ul data-role="listview" data-inset="true">
            <li data-role="list-divider">@item.productName</li>

            <li>
                Selling Price:R @item.sellingPrice
            </li>
            <li>
                Quantity On Hand: @item.quantityOnHand
            </li>

           @Html.ActionLink("Sell", "Sell", new { id=item.ProductId }) 

        </ul>
    }
  @*<div>
    @foreach (var item in Model)
    {
        <div>
            <h4>@item.productName</h4>
            <div>
               Quantity On Hand: @item.quantityOnHand
            </div>
            <div>
                Selling Price: @item.sellingPrice
            </div>
              @Html.ActionLink("Sell", "Sell", new { id=item.ProductId }) 
            <hr />
        </div>
    }
</div>*@

</div>

